package com.csun.cmny.provider.model.domain;

import javax.persistence.*;

@Table(name = "cn_dmc_csun_button_location")
public class DmcCsunButtonLocation {
    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 0-自定义, 1-人, 2-床
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 床位Id
     */
    @Column(name = "bed_id")
    private Integer bedId;

    /**
     * 绑定位置
     */
    private String location;

    /**
     * 报警时间间隔
     */
    @Column(name = "alarm_time")
    private Integer alarmTime;

    public Integer getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Integer alarmTime) {
        this.alarmTime = alarmTime;
    }

    /**
     * 获取设备Id
     *
     * @return device_id - 设备Id
     */
    public Long getDeviceId() {
        return deviceId;
    }

    /**
     * 设置设备Id
     *
     * @param deviceId 设备Id
     */
    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    /**
     * 获取0-自定义, 1-人, 2-床
     *
     * @return bind_type - 0-自定义, 1-人, 2-床
     */
    public Integer getBindType() {
        return bindType;
    }

    /**
     * 设置0-自定义, 1-人, 2-床
     *
     * @param bindType 0-自定义, 1-人, 2-床
     */
    public void setBindType(Integer bindType) {
        this.bindType = bindType;
    }

    /**
     * 获取老人Id
     *
     * @return oldman_id - 老人Id
     */
    public Integer getOldmanId() {
        return oldmanId;
    }

    /**
     * 设置老人Id
     *
     * @param oldmanId 老人Id
     */
    public void setOldmanId(Integer oldmanId) {
        this.oldmanId = oldmanId;
    }

    /**
     * 获取老人姓名
     *
     * @return oldman_name - 老人姓名
     */
    public String getOldmanName() {
        return oldmanName;
    }

    /**
     * 设置老人姓名
     *
     * @param oldmanName 老人姓名
     */
    public void setOldmanName(String oldmanName) {
        this.oldmanName = oldmanName;
    }

    /**
     * 获取床位Id
     *
     * @return bed_id - 床位Id
     */
    public Integer getBedId() {
        return bedId;
    }

    /**
     * 设置床位Id
     *
     * @param bedId 床位Id
     */
    public void setBedId(Integer bedId) {
        this.bedId = bedId;
    }

    /**
     * 获取绑定位置
     *
     * @return location - 绑定位置
     */
    public String getLocation() {
        return location;
    }

    /**
     * 设置绑定位置
     *
     * @param location 绑定位置
     */
    public void setLocation(String location) {
        this.location = location;
    }
}